package cst.cn.edu.neusoft.xumingze224.yuejian_5.Model;

import cst.cn.edu.neusoft.xumingze224.yuejian_5.Bean.LoginBean;
import cst.cn.edu.neusoft.xumingze224.yuejian_5.Listener.TListener;
import cst.cn.edu.neusoft.xumingze224.yuejian_5.Service.TService;
import cst.cn.edu.neusoft.xumingze224.yuejian_5.iface.LoginIface;
import retrofit2.Call;
import retrofit2.Retrofit;

public class LoginModel extends RetrofitBaseModel implements LoginIface<LoginBean> {
    Retrofit retrofit;
    TService tService;
    //private static final String BASE_URL="http://60.205.189.39/";
    public LoginModel(){
        retrofit=getRetrofit();
        tService = gettService();
    }
    @Override
    public void getLoginList(String username, String userpass, final TListener<LoginBean> tListener) {
        Call<LoginBean> call= tService.login(username,userpass);//传用户名和密码
        callenqueue(call,tListener);
    }
}
